package com.cqndt.disaster.device.dao;

import java.util.Map;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import com.cqndt.disaster.device.domain.TabDeviceType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

@Mapper
public interface TabDeviceTypeMapper extends BaseMapper<TabDeviceType>{
	
	List<TabDeviceType> selectDeviceType(@Param("monitorNo")String monitorNo);
	
	List<TabDeviceType> selectDeviceType1(@Param("deviceType")Integer deviceType,@Param("monitorNo") String monitorNo);

	List<Map<String,Object>> getDeviceTypeNameBySensorNo(@Param("sensorNo")String sensorNo);

	List<Map<String,Object>> getMonitorNameBySensorNo(@Param("sensorNo")String sensorNo,@Param("type")String type);

	int updateScale(@Param("typeId")Integer typeId,@Param("scale") String scale);
}